# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-oslotest
pkgver=4.4.0
pkgrel=0
pkgdesc="Oslo test framework"
url="https://docs.openstack.org/oslotest/latest/"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools py3-pbr"
checkdepends="py3-testtools py3-subunit"
source="https://pypi.python.org/packages/source/o/oslotest/oslotest-$pkgver.tar.gz"
options="!check" # Requires old package traceback2
builddir="$srcdir/oslotest-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="af50102abadf526559ae54509e2d57ea85abc06e28973381d578f4c95accd6dc32ec37cdedc22adaee813156fd25f1e9e9b4b9e4cd012ef56aaf5671994561ad  oslotest-4.4.0.tar.gz"
